home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / ABUSESRC.ZIP / AbuseSrc / macabuse / imlib / include / supmorph.hpp < prev    next >
C/C++ Source or Header  |  1997-05-20  |  745b  |  35 lines

  1. #ifndef __SUPER_MORPH_HPP__
  2. #define __SUPER_MORPH_HPP__
  3. #include "jmalloc.hpp"
  4. #include "timage.hpp"
  5.  
  6. class super_morph
  7. {
  8. public :
  9.   int t;
  10.   unsigned char *movers;
  11.   int w,h;
  12.   super_morph(trans_image *h1, trans_image *h2, int aneal_steps, void (*stat_fun)(int));  
  13.   ~super_morph() { if (t) jfree(movers); }
  14. } ;
  15.  
  16.  
  17. struct stepper
  18. {
  19.   long x,y,r,g,b,dx,dy,dr,dg,db;
  20. } ;
  21.  
  22. class smorph_player
  23. {
  24.   stepper *steps;
  25.   unsigned char *hole;
  26. public :
  27.   int w,h,f_left,t;
  28.   smorph_player(super_morph *m, palette *pal, image *i1, image *i2, int frames, int dir);
  29.   int show(image *screen, int x, int y, color_filter *fil, palette *pal, int blur_threshold);
  30.   ~smorph_player() { jfree(hole); jfree(steps);  }
  31. } ;
  32.  
  33.  
  34. #endif
  35.